package com.example.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;

import com.example.customview.PkMakeUpView;
import com.example.studyapplication.R;

/**
 * @Description:
 * @Author: 葛浩杰
 * @Version: 1.0 2021/4/21
 */
public class PkActivity extends Activity {

    private PkMakeUpView pmv;

    public static void startActivity(Context context){
        Intent intent = new Intent(context,PkActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pk);

        pmv = findViewById(R.id.pmuv);

        pmv.setLeftText("行");
        pmv.setRightText("我看不行");
        pmv.setVoteType(1);
    }

}
